package com.jqr.activity.roomsqlitedemo.data;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.jqr.activity.roomsqlitedemo.model.User;

import java.util.List;
@Dao
public interface UserDao {
    @Insert
    void insert(User user);

    @Query("select * from user")
    List<User> all();

}
